-- GENERATED SPELL FOR [Crystalline Ice Giant] --


function spell0_26291(pUnit, Event) --@Ice Boulder,n/a--
pUnit:FullCastSpellOnTarget(50588,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26291', 2000, 1)
end

function spell1_26291(pUnit, Event) --@Ice Stalagmite,n/a--
pUnit:FullCastSpellOnTarget(50597,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26291', 5000, 1)
end

function Sorts_26291(pUnit, Event)
local choix_sorts_26291 = math.random(0, 1)
if choix_sorts_26291 == 0 then
pUnit:RegisterEvent('spell0_26291', 1, 1)
end
if choix_sorts_26291 == 1 then
pUnit:RegisterEvent('spell1_26291', 1, 1)
end
end

function mob26291_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26291', math.random(1500, 3000), 1)
end

function mob26291_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26291_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26291_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26291, 1, 'mob26291_Action')
RegisterUnitEvent(26291, 2, 'mob26291_Leave')
RegisterUnitEvent(26291, 3, 'mob26291_Kill')
RegisterUnitEvent(26291, 4, 'mob26291_Die')
